"""
@name : sc_hash
@author : wenyao
@projectname: 空气质量.py
"""
#定义函数schash，作用是返回任意输入的字符串的第1个字符和最后一个字符
# def schash():
#     scstr = input("please input any thing:")
#     result = scstr[0] + scstr[-1]
#     return result
#
# # call 调用函数
# str = schash()
# print(str)

singer = ["cali",'liu',"wang"]
for i in singer:
    print(i)
singer = ["cali",'liu',"wang"]
# enumerate 枚举函数 ：给列表元素加上编号，编号默认从0开始
for i in enumerate(singer):
    print(i)
for i, j in enumerate(singer):
    print(f"id:{i} name:{j}")